package com.witdata.common.service;

import com.witdata.common.domain.dto.RoleDto;
import com.witdata.common.domain.dto.RolePermDto;
import com.witdata.common.domain.dto.RoleUserDto;

import java.util.List;
import java.util.Set;

public interface RoleService {

    List<String> getRoleCodeListByUserId(Long userId);

    List<Long> getRoleIdListByUserId(Long userId);

    Set<String> getRoleCodeSetByUserId(Long userId);

    Set<RoleDto> getRoleSetByUserId(Long userId);

    void addPerm(RolePermDto rolePerm);

    void saveRole(RoleDto roleDto);

    List<RoleDto> getRoleList();

    void addUser(RoleUserDto roleUser);
}
